<template>
  <form class="tool-form">
    <slot></slot>
  </form>
</template>

<script>
export default {
  props: {
    model: Object
  },
  methods: {
    // 重置表单
    resetForm () {
      for (let key in this.model) {
        this.model[key] = null
      }
    }
  }
}
</script>

<style>
.tool-form{
  width: 100%;
}
</style>
